package com.itlong.cloud.enumerate;

/**
 * <desc>
 *     云设备业务类型指令
 * </desc>
 */
public enum DeviceIotEnum {
    REGIST_DEVICE(1,"注册设备","JSONObject,类似{deviceOperateIotType:1,productKey:12345646saf,deviceUnique:8888888830001}"),
    SAVE_DEVICE_PROP(2,"保存设备属性","JSONObject,类似{deviceOperateIotType:2,productKey:12345646saf,deviceUnique:8888888830001,deviceProJs:{deviceIotKey:887897,deviceIotName:测试}}"),
    BATCH_GET_DEVICE_STATE(3,"批量获取同一个产品型号下的设备工作状态","JSONObject,类似{deviceOperateIotType:3,productKey:12345646saf,deviceUniqueArr:[{deviceUnique:8888888830001},{deviceUnique:8888888830002}]}"),
    DELETE_DEVICE_PROP(4,"删除设备属性","JSONObject,类似{deviceOperateIotType:4,productKey:12345646saf,deviceUnique:8888888830001,deviceProJs:{deviceIotKey:887897,deviceIotName:测试}}"),
    PUB_MESSAGE(5,"发送消息到设备","JSONObject，类似{deviceOperateIotType:5,elevators:[{productKey:123456abc,topic:/abc/abc,message:aaaaaaa},{productKey:123456abc,topic:/abc/abc/abc,message:aaaaaaa}]}");


    private Integer commandType; //指令类型
    private String commandDes; //指令描述
    private String commandParameter;  // 指令参数示例

    DeviceIotEnum(Integer commandType, String commandDes, String commandParameter){
        this.commandType = commandType;
        this.commandDes = commandDes;
    }
    public Integer getCommandType(){
        return this.commandType;
    }
    public String getCommandDes(){
        return this.commandDes;
    }

}
